<template>
	<view class="music-rank">
		<view class="content">
			<block v-for="item in songs" :key="item.id">
				<view class="singer-song">{{item.al.name}} - {{item.ar[0].name}}</view>
			</block>
		</view>
		<image :src="imageUrl" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
		props: {
			imageUrl: {
				type: String
			},
			songs: {
				type: Array
			}
		}
	}
</script>

<style scoped>
	.music-rank {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 20rpx;
		background-color: #f8f8f8;
		border-radius: 5px;
	}
	.music-rank image {
		width: 25%;
		border-radius: 0 5px 5px 0;
	}
	.music-rank .content {
		width: 70%;
		height: 100%;
		font-size: 24rpx;
		color: #333;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.content .singer-song {
		padding: 5rpx 10rpx;
	}
</style>
